package com.skivingcloud.admin.sys.vo;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.List;

/**
 * @author hushouquan
 */
@Schema(name = "AdminRoute对象", title = "菜单路由")
public class AdminRoute implements Serializable{
    private String id;
    private String parentId;
    private String menuUrl;
    private String menuName;
    private String routeName;
    private String icon;
    private String parentPath;
    private boolean isRootPath = false;
    private Integer orderNum;
    private List<AdminRoute> children;
    
    public String getId(){
        return id;
    }
    
    public void setId(String id){
        this.id = id;
    }
    
    public String getMenuUrl(){
        return menuUrl;
    }
    
    public void setMenuUrl(String menuUrl){
        this.menuUrl = menuUrl;
    }
    
    public String getMenuName(){
        return menuName;
    }
    
    public void setMenuName(String menuName){
        this.menuName = menuName;
    }
    
    public String getRouteName(){
        return routeName;
    }
    
    public void setRouteName(String routeName){
        this.routeName = routeName;
    }
    
    public String getIcon(){
        return icon;
    }
    
    public void setIcon(String icon){
        this.icon = icon;
    }
    
    public String getParentPath(){
        return parentPath;
    }
    
    public void setParentPath(String parentPath){
        this.parentPath = parentPath;
    }
    
    public List<AdminRoute> getChildren(){
        return children;
    }
    
    public void setChildren(List<AdminRoute> children){
        this.children = children;
    }
    
    public boolean isRootPath(){
        return isRootPath;
    }
    
    public void setRootPath(boolean rootPath){
        isRootPath = rootPath;
    }
    
    public String getParentId(){
        return parentId;
    }
    
    public void setParentId(String parentId){
        this.parentId = parentId;
    }
    public Integer getOrderNum(){
        return orderNum;
    }
    
    public void setOrderNum(Integer orderNum){
        this.orderNum = orderNum;
    }
    
    @Override
    public String toString(){
        return "AdminRoute{" +
                "id='" + id + '\'' +
                ", parentId='" + parentId + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuName='" + menuName + '\'' +
                ", routeName='" + routeName + '\'' +
                ", icon='" + icon + '\'' +
                ", parentPath='" + parentPath + '\'' +
                ", isRootPath=" + isRootPath +
                ", orderNum=" + orderNum +
                ", children=" + children +
                '}';
    }
}
